package www.Zheng;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;

/**
 * @Title: Demo6
 * @Author zyh
 * @Package www.Zheng
 * @Date 2024/7/7 23:29
 * @description: 字节输入转换为字符输入的简单实现
 */
public class Demo6 {
    public static void main(String[] args) {
        try (InputStream stream = new FileInputStream("")){
            Scanner scanner = new Scanner(stream);
            System.out.println(scanner.nextLine());
        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
